<!-- 头部+搜索模块 -->
<section id="searchbar" class="pt-32 pb-16 bg-gradient-to-br from-primary/5 to-primary/10">
  <div class="container mx-auto px-4 sm:px-6 lg:px-8">
    <div class="text-center max-w-3xl mx-auto">
      <h1 class="text-[clamp(2rem,5vw,3.5rem)] font-bold text-dark mb-6 leading-tight">
        <?= $data['content']['sectionTitle']?>
        <span class="text-primary"><?= $data['content']['sectionBadge']?></span>
      </h1>
      <p class="text-dark/70 text-lg mb-8">
        <?= $data['content']['sectionSubtitle']?>
      </p>
      <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4 mb-12">
        <a href="#services" class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-custom font-medium">
          <?= $data['content']['buttons'][0]['text'] ?>
        </a>
        <a href="#contact" class="px-6 py-3 border border-primary text-primary rounded-lg hover:bg-primary/5 transition-custom font-medium">
          <?= $data['content']['buttons'][1]['text'] ?>
        </a>
      </div>
      
      <!-- 搜索框 -->
      <div class="bg-white p-4 rounded-xl shadow-md max-w-2xl mx-auto">
        <form class="flex flex-col sm:flex-row gap-3">
          <div class="flex-1 relative">
            <i class="fa fa-search absolute left-4 top-1/2 -translate-y-1/2 text-dark/40"></i>
            <input 
              type="text" 
              placeholder="搜索服务、产品或解决方案..." 
              class="w-full pl-10 pr-4 py-3 border border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary"
            >
          </div>
          <button type="submit" class="px-6 py-3 bg-primary text-white rounded-lg hover:bg-primary/90 transition-custom font-medium whitespace-nowrap">
            搜索
          </button>
        </form>
        <div class="flex flex-wrap gap-2 mt-3">
          <?php foreach ($data['content']['tags'] as $tag): ?>
            <a href="<?= $tag['url'] ?>" class="text-sm text-dark/60 hover:text-primary transition-custom"><?= $tag['text'] ?></a>
          <?php endforeach; ?>
        </div>
      </div>
    </div>
  </div>
</section>